package com.clwl.supervise.superviseapp.entity.supervise;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
    * 主体异常信息
    */
@Data
@TableName(value = "JS_ENT_ANOMALY")
//@KeySequence("JS_ENT_ANOMALY_SQE")
public class JsEntAnomaly implements Serializable {

    @TableId(value = "ID", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 企业id
     */
    @TableField(value = "COMPANY_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long companyId;

    /**
     * 企业名称
     */
    @TableField(value = "COMPANY_NAME")
    private String companyName;

    /**
     * 统一会社信用代码
     */
    @TableField(value = "CREDIT_CODE")
    private String creditCode;

    /**
     * 许可证编码
     */
    @TableField(value = "LICENSE")
    private String license;

    /**
     * 检查id 根据类型查询不同表
     */
    @TableField(value = "DAILY_CHECK_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long dailyCheckId;

    /**
     * 异常原因
     */
    @TableField(value = "ABNORMAL_CAUSE")
    private String abnormalCause;

    /**
     * 核查记录
     */
    @TableField(value = "AUDIT_TRAILS")
    private String auditTrails;

    /**
     * 整改时间
     */
    @TableField(value = "RECTIFY_TIME")
    private String rectifyTime;

    /**
     * 检查结果
     */
    @TableField(value = "CHECK_RESULTS")
    private String checkResults;

    /**
     * 处理结果
     */
    @TableField(value = "PROCESS_RESULTS")
    private String processResults;


    /**
     * 处理结果
     */
    @TableField(value = "CHECK_NUMBER")
    private Integer checkNumber;

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME")
    private Date createTime;

    /**
     * 创建人id
     */
    @TableField(value = "CREATOR_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long creatorId;

    /**
     * 创建人姓名
     */
    @TableField(value = "CREATOR")
    private String creator;

    /**
     * 是否删除：0-否，1-是
     */
    @TableField(value = "DELETE_FLAG")
    private Long deleteFlag;

    /**
     * '检查类型；1-日常检查；2-双随机检查；3-飞行检查；4-体系检查;5-动态评分;6-专项检查(下发的非计划)
     */
    @TableField(value = "CHECK_TYPE")
    private String checkType;

    private static final long serialVersionUID = 1L;
}
